<template>
  <Shade @close="closeModal">
    <div class="absolute top-full mt-3 right-0">
      <div class="bg-white overflow-hidden rounded-xl border-1 border-periwinkle-gray shadow">
        <a
          class="cursor-pointer px-5 py-3 flex flex-row items-center gap-3 hover:opacity-80 whitespace-nowrap capitalize"><span>
            <div class="flex flex-row items-center gap-3">
              <svg class="w-6 h-6" xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px"
                fill="#000000">
                <path d="M0 0h24v24H0z" fill="none"></path>
                <path
                  d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z">
                </path>
              </svg>Global
            </div>
          </span></a><a
          class="cursor-pointer px-5 py-3 flex flex-row items-center gap-3 hover:opacity-80 whitespace-nowrap capitalize"><span>
            <div class="flex flex-row items-center gap-3"><svg class="w-6 h-6" xmlns="http://www.w3.org/2000/svg"
                xmlns:xlink="http://www.w3.org/1999/xlink" id="flag-icons-nz" viewBox="0 0 640 480">
                <defs>
                  <g id="b">
                    <g id="a">
                      <path d="M0 0v.5L1 0z" transform="translate(0 -.3)"></path>
                      <path d="M0 0v-.5L1 0z" transform="rotate(-36 .5 -.2)"></path>
                    </g>
                    <use xlink:href="#a" transform="scale(-1 1)"></use>
                    <use xlink:href="#a" transform="rotate(72 0 0)"></use>
                    <use xlink:href="#a" transform="rotate(-72 0 0)"></use>
                    <use xlink:href="#a" transform="scale(-1 1) rotate(72)"></use>
                  </g>
                </defs>
                <path fill="#00247d" fill-rule="evenodd" d="M0 0h640v480H0z"></path>
                <g transform="translate(-111 36.1) scale(.66825)">
                  <use xlink:href="#b" width="100%" height="100%" fill="#fff" transform="matrix(45.4 0 0 45.4 900 120)">
                  </use>
                  <use xlink:href="#b" width="100%" height="100%" fill="#cc142b" transform="matrix(30 0 0 30 900 120)">
                  </use>
                </g>
                <g transform="rotate(82 525.2 114.6) scale(.66825)">
                  <use xlink:href="#b" width="100%" height="100%" fill="#fff"
                    transform="rotate(-82 519 -457.7) scale(40.4)"></use>
                  <use xlink:href="#b" width="100%" height="100%" fill="#cc142b"
                    transform="rotate(-82 519 -457.7) scale(25)"></use>
                </g>
                <g transform="rotate(82 525.2 114.6) scale(.66825)">
                  <use xlink:href="#b" width="100%" height="100%" fill="#fff"
                    transform="rotate(-82 668.6 -327.7) scale(45.4)"></use>
                  <use xlink:href="#b" width="100%" height="100%" fill="#cc142b"
                    transform="rotate(-82 668.6 -327.7) scale(30)"></use>
                </g>
                <g transform="translate(-111 36.1) scale(.66825)">
                  <use xlink:href="#b" width="100%" height="100%" fill="#fff" transform="matrix(50.4 0 0 50.4 900 480)">
                  </use>
                  <use xlink:href="#b" width="100%" height="100%" fill="#cc142b" transform="matrix(35 0 0 35 900 480)">
                  </use>
                </g>
                <path fill="#012169" d="M0 0h320v240H0z"></path>
                <path fill="#fff"
                  d="m37.5 0 122 90.5L281 0h39v31l-120 89.5 120 89V240h-40l-120-89.5L40.5 240H0v-30l119.5-89L0 32V0z">
                </path>
                <path fill="#c8102e"
                  d="M212 140.5 320 220v20l-135.5-99.5zm-92 10 3 17.5-96 72H0zM320 0v1.5l-124.5 94 1-22L295 0zM0 0l119.5 88h-30L0 21z">
                </path>
                <path fill="#fff" d="M120.5 0v240h80V0zM0 80v80h320V80z"></path>
                <path fill="#c8102e" d="M0 96.5v48h320v-48zM136.5 0v240h48V0z"></path>
              </svg>New Zealand</div>
          </span></a><a
          class="cursor-pointer px-5 py-3 flex flex-row items-center gap-3 hover:opacity-80 whitespace-nowrap capitalize"><span>
            <div class="flex flex-row items-center gap-3"><svg class="w-6 h-6" xmlns="http://www.w3.org/2000/svg"
                id="flag-icons-au" viewBox="0 0 640 480">
                <path fill="#00008B" d="M0 0h640v480H0z"></path>
                <path fill="#fff"
                  d="m37.5 0 122 90.5L281 0h39v31l-120 89.5 120 89V240h-40l-120-89.5L40.5 240H0v-30l119.5-89L0 32V0z">
                </path>
                <path fill="red"
                  d="M212 140.5 320 220v20l-135.5-99.5zm-92 10 3 17.5-96 72H0zM320 0v1.5l-124.5 94 1-22L295 0zM0 0l119.5 88h-30L0 21z">
                </path>
                <path fill="#fff" d="M120.5 0v240h80V0h-80ZM0 80v80h320V80H0Z"></path>
                <path fill="red" d="M0 96.5v48h320v-48zM136.5 0v240h48V0z"></path>
                <path fill="#fff"
                  d="m527 396.7-20.5 2.6 2.2 20.5-14.8-14.4-14.7 14.5 2-20.5-20.5-2.4 17.3-11.2-10.9-17.5 19.6 6.5 6.9-19.5 7.1 19.4 19.5-6.7-10.7 17.6 17.4 11.1Zm-3.7-117.2 2.7-13-9.8-9 13.2-1.5 5.5-12.1 5.5 12.1 13.2 1.5-9.8 9 2.7 13-11.6-6.6-11.6 6.6Zm-104.1-60-20.3 2.2 1.8 20.3-14.4-14.5-14.8 14.1 2.4-20.3-20.2-2.7 17.3-10.8-10.5-17.5 19.3 6.8L387 178l6.7 19.3 19.4-6.3-10.9 17.3 17.1 11.2ZM623 186.7l-20.9 2.7 2.3 20.9-15.1-14.7-15 14.8 2.1-21-20.9-2.4 17.7-11.5-11.1-17.9 20 6.7 7-19.8 7.2 19.8 19.9-6.9-11 18 17.8 11.3Zm-96.1-83.5-20.7 2.3 1.9 20.8-14.7-14.8-15.1 14.4 2.4-20.7-20.7-2.8 17.7-11L467 73.5l19.7 6.9 7.3-19.5 6.8 19.7 19.8-6.5-11.1 17.6 17.4 11.5ZM234 385.7l-45.8 5.4 4.6 45.9-32.8-32.4-33 32.2 4.9-45.9-45.8-5.8 38.9-24.8-24-39.4 43.6 15 15.8-43.4 15.5 43.5 43.7-14.7-24.3 39.2 38.8 25.1Z">
                </path>
              </svg>Australia</div>
          </span></a>
      </div>
    </div>
  </Shade>
</template>
<script lang="ts" setup>
import { defineEmits } from 'vue'
import Shade from '../Shade/index.vue'

const emits = defineEmits(['navClose'])
const closeModal = () => {
  emits('navClose')
}
</script> 
